﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="SearchBar.ascx.cs" Inherits="controls_front_SearchBar" %>

<%@ Register TagPrefix="SalePartial" TagName="NewsSearch" Src="~/Controls/front/NewsSearch.ascx" %>
<%@ Register TagPrefix="SalePartial" TagName="TechSearch" Src="~/Controls/front/TechSearch.ascx" %>
<%@ Register TagPrefix="SalePartial" TagName="StandSearch" Src="~/Controls/front/StandSearch.ascx" %>
<%@ Register TagPrefix="SalePartial" TagName="ExhbSearch" Src="~/Controls/front/ExhbSearch.ascx" %>
<%@ Register TagPrefix="SalePartial" TagName="DownloadSearch" Src="~/Controls/front/DownloadSearch.ascx" %>
<%@ Register TagPrefix="SalePartial" TagName="TransSearch" Src="~/Controls/front/TransSearch.ascx" %>
<%@ Register TagPrefix="SalePartial" TagName="AllSearch" Src="~/Controls/front/AllSearch.ascx" %>

<script type="text/javascript">
    function changetab(searchid)
    {
        var i=1;
        while(document.getElementById("search_tab"+i)!=null)
        {
            document.getElementById("search_tab"+i).className="";
            document.getElementById("search_content"+i).style.display="none";
            i++;
        }
        
        document.getElementById("search_tab"+searchid).className="act";
        document.getElementById("search_content"+searchid).style.display="";
    }
</script>
	
<ul>
<li class="act" id="search_tab1" onclick="changetab('1')" >首?</li>
<li id="search_tab2" onclick="changetab('2')">零件模型</li>
<li id="search_tab3" onclick="changetab('3')">??信息</li>
<li id="search_tab4" onclick="changetab('4')">供?商?</li>
<li id="search_tab5" onclick="changetab('5')">?品工?</li>
<li id="search_tab6" onclick="changetab('6')">新?与咨?</li>
<li >?助与支持</li>
<li >招聘求?</li>
<li id="search_tab7" onclick="changetab('7')">全站?索</li>
</ul>

<div class="clear"></div>
<div id="search_content1" >
    <SalePartial:NewsSearch ID="NewsSearch" runat="server" />
</div>
<div id="search_content2" style="display:none">
    <SalePartial:TechSearch ID="TechSearch" runat="server" />
</div>
<div id="search_content3" style="display:none">
    <SalePartial:StandSearch ID="StandSearch" runat="server" />
</div>
<div id="search_content4" style="display:none">
    <SalePartial:ExhbSearch ID="ExhbSearch" runat="server" />
</div>
<div id="search_content5" style="display:none">
    <SalePartial:DownloadSearch ID="DownloadSearch" runat="server" />
</div>
<div id="search_content6" style="display:none">
    <SalePartial:TransSearch ID="TransSearch" runat="server" />
</div>
<div id="search_content7" style="display:none">
    <SalePartial:AllSearch ID="AllSearch" runat="server" />
</div>


